package com.zb.vo;

import com.zb.annotation.NumberPattern;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author WEN
 * @Date 2024/3/26 0026
 **/
@Data
@ApiModel("服务商邀请码设置")
public class NetworkInviteCodeSetVo {

    @NotNull(message = "邀请码有效期不能为空")
    @ApiModelProperty(value = "邀请码有效期，最少一天", required = true, example = "1")
    private Integer expirtTime;

    @NotNull(message = "是否开启非超管邀请项不能为空")
    @ApiModelProperty(value = "是否开启非超管邀请：false-关闭，true-开启", required = true, example = "true")
    private Boolean enableNotSuperManagerInvite;

    @NotNull(message = "是否开启邀请审核项不能为空")
    @ApiModelProperty(value = "是否开启邀请审核：false-关闭，true-开启", required = true, example = "true")
    private Boolean enableInviteCheck;

    @NotNull(message = "邀请方式不能为空")
    @NumberPattern(regexp = "^(1|2)$", required = true, message = "邀请方式参数不合法")
    @ApiModelProperty(value = "邀请方式：1-邀请码，2-短信邀请", required = true, example = "1")
    private Integer inviteType;

    @ApiModelProperty(value = "邀请码", hidden = true)
    private String inviteCode;
}
